﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMDev.BNET.ClientAPI
{
    [AttributeUsage(AttributeTargets.Field, AllowMultiple=false)]
    public sealed class BNETRegionHostAttribute
        : Attribute
    {
        #region Fields

        private readonly String hostname;
        private readonly String region;
        private readonly String regionFullname;
        private readonly String[] regionLocales;
        
        #endregion

        #region Properties

        public String Hostname
        {
            get
            {
                return this.hostname;
            }            
        }

        public String Region
        {
            get
            {
                return this.region;
            }
        }
        
        public String RegionFullname
        {
            get
            {
                return this.regionFullname;
            }
        }

        public String[] RegionLocales
        {
            get
            {
                return this.regionLocales;
            }
        }

        #endregion

        #region .ctor

        public BNETRegionHostAttribute(string hostname, string region, string regionFullname, String[] regionLocales = null)
        {
            this.hostname = hostname;
            this.region = region;
            this.regionFullname = regionFullname;
            this.regionLocales = regionLocales;
        }

        #endregion
    }
}
